package com.woniu.ucenterservice.dao;

import com.woniu.ucenterservice.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userId);
    @Select(value = "select * from user where username=#{username}")
    User selectOne(String username);
    @Select(value = "select * from user where open_id=#{openId}")
    User select(Integer openId);
    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

}